{% extends "base.tpl" %}

{% block title %}{{ application_name}} - {{ page.name|escape }}{% endblock %}

{% block stylesheet %}
	
	<script type="text/javascript" src="/static/tinymce/tiny_mce.js"></script>
	
  <style type="text/css">

  #body a[href ^="http"] {
    color: #36b;
    background: url('/static/images/external.png') center right no-repeat;
    padding-right: 13px;
  }

  #body h1 a.wikiword, #body h1 a.wikiword:visited {
    color: black;
    text-decoration: none;
  }

  </style>
{% endblock %}

{% block buttons %}
	<span class="item"><input type="button" onclick="location.href='{{ page_url }}wiki/edit/?page={{ page_name }}'" value="Sunting Halaman"/></span>
{% endblock %}

{% block body %}
	{{ content | raw }}
{% endblock %}

{% block javascript %}
	<script type="text/javascript">
		tinyMCE.init({
			mode: "textareas",
			theme: "advanced",
			content_css: "/static/css/base.css",
			auto_focus: "mce_editor_0"
		});
	</script>
{% endblock %}
